package com.liu.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liu.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.eduservice.entity.vo.CourseInfoForm;
import com.liu.eduservice.entity.vo.CoursePublishVo;
import com.liu.eduservice.entity.vo.CourseQuery;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author achang
 * @since 2022-05-20
 */
public interface EduCourseService extends IService<EduCourse> {

    // 添加课程信息
    String  saveCourseInfo(CourseInfoForm courseInfoForm);

    // 根据课程id查询课程
    CourseInfoForm getCourseInfo(String courseId);


    // 修改课程信息
    void updateCourseInfo(CourseInfoForm courseInfoForm);

     // 根据课程id查询课程发布信息
    CoursePublishVo getPublishCourseInfo(String courseId);

    // 多条件查询讲师带分页
    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    //删除课程
    void removeCourse(String courseId);
}
